<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class addHistory extends Model
{
    //
    /**
     * 数据核心指针
     */
    private $dataCore;

    public function __construct(){
    	$this->dateCore = new \App\Model\dataCore();
    }

    /**
     * @param array $source 存放需要插入的数据
     *					visitor_open_id
     *					view_id
     *					operating
     *					longitude
     *					latitude
     * 
     * @return 1/0 
     */
    public function insertHistory($source){
    	$source['visit_time'] = date("Y-m-d H:i:s");
    	
    }
}
